/*----------------------------------------------------------------------------*/
/*        Copyright (c) FIRST 2008.  All Rights Reserved.                     */
/*  Open Source Software - may be modified and shared by FRC teams. The code  */
/*  must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
/*----------------------------------------------------------------------------*/

#ifndef SMASH_VIDEO_SERVER_H_
#define SMASH_VIDEO_SERVER_H_

#include "Task.h"

namespace smash {

static const char* PCVideoDefaultIP = "10.21.52.106";
static char* PCVideoIP;
static const short PCVideoPort = 1234;
static const int DEFAULT_PACKET_SIZE(1536);

class PCVideoServer {
  public:
    PCVideoServer();
    virtual ~PCVideoServer();

    void Start();
    void Stop();
  private:
    static void VideoServerHelper();
    int StartTask();
    Task server_task_;
    SEM_ID send_image_;
};

}

#endif // SMASH_VIDEO_SERVER_H_
